package com.bootdo.dev.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.bootdo.common.utils.Query;
import com.bootdo.dev.dao.PhoneDevDao;
import com.bootdo.dev.domain.PhoneDev;

@Service
public class PhoneDevServiceImpl implements PhoneDevService 
{
	@Resource
	private PhoneDevDao phoneDevDao;

	@Override
	public List<PhoneDev> getDevList() 
	{
		
		return phoneDevDao.getDevList();
	}

	@Override
	public void updatePhoneById(PhoneDev phoneData) 
	{
		phoneDevDao.updatePhoneById(phoneData);
	}

	@Override
	public List<PhoneDev> list(Query query) 
	{
		return phoneDevDao.listByPage(query);
	}

	@Override
	public int count(Query query) 
	{
		return phoneDevDao.getCount();
	}

	@Override
	public PhoneDev getPhoneDevById(Long id) {
		return phoneDevDao.getPhoneDevById(id);
	}
	
}
